package web.servlet;

import domain.Label;
import service.LabelService;
import service.impl.LabelServiceImpl;

import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.annotation.*;
import java.io.IOException;
import java.util.List;

@WebServlet("/label/*")
public class LabelServlet extends BaseServlet {
    LabelService service = new LabelServiceImpl();

    public void findAll(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
        List<Label> list = service.findAll();
        System.out.println(list + "--------------------->label/findAll");
        writeValue(list,response);
    }


    public void iii(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
        this.doPost(request, response);
    }
}
